import useToggle from "./useToggle";

function Custom() {
  const { state, toggle } = useToggle();

  return (
    <div>
      <button onClick={toggle}>Toggle</button>
      {state && <p>This is a custom hook test</p>}
    </div>
  );
}

export default Custom;
